/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo1008;

import java.util.TreeSet;

/**
 *
 * @author Administrator
 */
public class TreeSetDemo {
    public static void main(String args[]){
      TreeSet<Character > hs=new TreeSet<Character>();
      
      String s2="ertadds";
       char c[]=s2.toCharArray();
       
      for(char c1:c){
          hs.add(c1);
      }
      
      for(char c2:hs){
          System.out.print(c2);
      }
    }
    
}
